package com.lu.pojo.oop.animal;

public class Frog extends Animal implements ISwim{

    public Frog(String name, String color, String category) {
        super(name, color, category);
    }

    @Override
    public String eat() {
        return "青蛙是"+this.getCategory()+"爱吃昆虫";
    }

    @Override
    public String yell() {
        return "青蛙正在呱呱的叫。";
    }

    @Override
    public void doSwim() {
        System.out.println("虽然不是鱼,但青蛙也是泳坛高手。");
    }
}
